package net.ojbk.sso.center.web.handlers;

import net.ojbk.sso.center.beans.po.User;
import net.ojbk.sso.center.beans.pojo.TokenSystem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * Created with IntelliJ IDEA.
 * User: twobox
 * Date: 2019/4/10
 * Time: 15:55
 * Description: No Description
 */
@Controller
@RequestMapping("admin")
public class AdminController {
    @Autowired
    TokenSystem tokenSystem;

    @RequestMapping("")
    public ResponseEntity<Object> test(HttpSession session) {
        return new ResponseEntity<>(tokenSystem.getOjbkSessionMap("100001").keySet(), HttpStatus.OK);
    }


}
